﻿#region Using

using GameCommon.ManagerInterfaces;

using Microsoft.Xna.Framework;

using GameComponent = GameCommon.Components.GameComponent;

#endregion

namespace Menu.Components
{
    internal class MenuComponentBase : GameComponent
    {
        public MenuComponentBase(string id)
            : base(id)
        {
        }

        public MenuComponentBase(string id, MenuComponentBase objectToCopy)
            : base(id)
        {
            this.Copy(objectToCopy);
        }

        public GameComponent Parent { get; set; }
        
        public override void Draw(IDrawingManager manager, GameTime gameTime)
        {
        }
        
        public override string ToString()
        {
            return string.Format("MenuComponentBase, Id: {0}", this.Id);
        }

        protected void Copy(MenuComponentBase objectToCopy)
        {
            this.Parent = objectToCopy.Parent;
            this.Id = objectToCopy.Id;
            this.Opacity = objectToCopy.Opacity;
            this.Dimension = objectToCopy.Dimension;
        }
    }
}